package com.gxa.mapper;

import com.gxa.pojo.Duty;

import java.util.List;
import java.util.Map;

public interface DutyMapper {

    /**
     *
     * @param page
     * @param size
     * @return
     */
    List<Duty> findDutyByPage(Integer page,Integer size);

    List<Duty> findAll();

    Integer findAllDuty();

    Integer deleteDutyById(Integer id);

    /**
     *
     * @param map
     * @return
     */
    Integer insertDuty(Map map);

    int insertSelective(Duty record);

    Duty selectByPrimaryKey(Integer dutyid);

    Integer updateDutyById(Map map);

    Integer updateDutyState(Map map);

    int updateByPrimaryKey(Duty record);

    String findDutyByName(String name);
}